﻿using Company.Database.Entities;

namespace Company.Shell.Interfaces
{
    public interface ISession
    {
        /// <summary>
        /// 当前登录用户
        /// </summary>
        UserEntity CurrentUser { get; }
        /// <summary>
        /// 把登录用户添加到Session中
        /// </summary>
        void Add(UserEntity user);
    }
}
